import request from "@/utils/request";

export function addOrder(data) {
    return new Promise(resolve => {
        resolve(request({
            url: '/order/add',
            method: 'post',
            data
        }))
    })
}

export function loadList(params) {
    return new Promise(resolve => {
        resolve(request({
            url: '/order/loadList',
            method: 'get',
            params
        }))
    })
}

export function updateStatus(data) {
    return new Promise(resolve => {
        resolve(request({
            url: '/order/update',
            method: 'post',
            data
        }))
    })
}
